<template>
  <div class="News">
    <div class="bg">
      <img src="@/assets/images/news/bg2.jpg" alt="" />
    </div>
    <div class="pet-guide">
      <div class="left">
        <div class="header">
          <img src="@/assets/images/news/zhua.png" alt="" />
          <h3>宠物经验</h3>
          <router-link to="#"
            >更多<i class="iconfont icon-xiangyou"></i
          ></router-link>
        </div>
        <div class="content">
          <div class="item" v-for="item in 6" :key="item">
            <router-link
              to="#"
              class="bgImg"
              :style="{
                background:
                  'url(http://demo.92wailian.com/k58/static/upload/image/20200714/1594693665814752.jpg) center no-repeat',
              }"
            >
            </router-link>
            <div class="title">
              <router-link to="#">狗狗经常外出怎么办？</router-link>
            </div>
            <div class="scription">
              据《温哥华太阳报》6月16日消息，日本是世界上人口出生率最低但寿命却相对最长的国家之一，人口老龄化现象非常严重。而现在日本的宠物群体也开始出现老龄化。随着越来越多的猫、狗成为高龄宠物，老年宠物护理已经成为日本最为新兴的行业之一
            </div>
            <div class="author">
              <span class="icon">
                <i class="iconfont icon-dianzan"><span>13</span></i>
                <i class="iconfont icon-31shoucang"><span>20</span></i>
                <i class="iconfont icon-liulan1"><span>132</span></i>
              </span>
              <span class="time">2021-12-03</span>
            </div>
          </div>
        </div>
      </div>
      <div class="right">
        <div class="header">
          <span>选宠物指南</span>
          <i class="iconfont icon-jiahao"></i>
        </div>
        <!-- 指南 -->
        <div class="item" v-for="item in 3" :key="item">
          <router-link
            to="#"
            :style="{
              background:
                'url(http://demo1273.cdsenyang.cn/static/upload/image/20220115/1642246209182836.jpg)  center no-repeat',
            }"
          >
          </router-link>
          <div class="cont">
            <p class="title">好奇猫奶是什么味道</p>
            <p class="scription">
              养猫的那些年，谁还没有做过一些？这两天在知乎，看到了一个“匪夷所思”的问题：猫奶什么味道？怎么才能喝到？翻看下面的回答，简直刷新了我的世界观，下面是经授权采访到的一位知乎网
            </p>
          </div>
        </div>
        <!-- 问题 -->
        <div class="question">
          <div class="top">
            <div class="logo">
              <img src="@/assets/images/news/question.png" alt="" />
              <span class="san"></span>
            </div>
            <div class="scription">
              <span>问答环节</span>
              <span>对于宠物有什么疑问</span>
              <span>可以求助于广大网友的帮助</span>
            </div>
          </div>
          <div class="item" v-for="item in 3" :key="item">
            <p class="title">
              <i class="iconfont icon-wenxiao"></i
              ><router-link to="#">狗狗不经常回家是怎么了？</router-link>
            </p>
            <p class="scription">
              <i class="iconfont icon-wenda"></i>
              狗狗不经常回家是因为在外卖产仔了，因为要经常看所以会减少回来查看的时间。又或狗狗不经常回家可能是因为在外卖产仔了，因为要经常看所以会减少回来查看的时间。又或者是和小伙伴出去玩了者是和小伙伴出去玩了
            </p>
          </div>
        </div>
      </div>
    </div>
    <!-- 宠物资讯 -->
    <div class="pet-exp">
      <div class="header">
        <img src="@/assets/images/news/zhua.png" alt="" />
        <h3>知识文章</h3>
      </div>
      <div class="container">
        <div class="left">
          <img src="@/assets/images/news/hot_message.jpg" alt="" />
          <div class="hot">
            <h3>热门文章</h3>
            <ul>
              <li v-for="item in 7" :key="item">
                <span class="point"></span>
                <div class="cont">
                  <span class="title"
                    >为什么为什么那么多人讨厌泰迪那么多人讨厌泰迪</span
                  >
                  <span class="time">2022-01-03</span>
                </div>
              </li>
            </ul>
          </div>
        </div>
        <div class="right">
          <div class="item" v-for="item in 3" :key="item">
            <router-link
              to="#"
              class="Img"
              :style="{
                background: `url(http://demo.92wailian.com/k58/static/upload/image/20200714/1594693665814752.jpg)
            center no-repeat`,
              }"
            >
              <img src="@/assets/images/news/exp-1.jpg" alt="" />
            </router-link>
            <div class="content">
              <router-link to="#">怎么制止拉布拉多乱叫</router-link>
              <div class="author">
                <i class="iconfont icon-wode"></i>164s<span></span>
                <i class="iconfont icon-shijian"></i>2018-04-12
              </div>
              <div class="scription">
                当拉布拉多不停乱叫的时候，饲养者可以对其进行呵斥，让它知道乱叫是错误的行为，不过需要注意的是轻声呵斥即可，不要对其进行打骂，以免狗狗出现恐惧情绪。在它停止乱叫后可以适当给予一些奖励，比如高级罐头。想有制止拉布拉多乱叫，饲养者需要从小开始训练和教导。当它出现乱叫的行为后，饲养者可以对其进行呵斥，让它知误的行为，不过需要注意的是轻声呵斥即可，不要对其进行打骂，以免狗狗出现恐惧情绪。在它停止乱叫后可以适当给予一些奖励，比如高级罐头
              </div>
              <div class="bottom">查看详情</div>
            </div>
          </div>
          <div class="pager">
            <ul>
              <li>首页</li>
              <li>上一页</li>
              <li class="active">1</li>
              <li>2</li>
              <li>3</li>
              <li>4</li>
              <li>5</li>
              <li>下一页</li>
              <li>尾页</li>
            </ul>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "myNews",
};
</script>

<style lang="less" scoped>
.News {
  padding-bottom: 20px;
  .bg {
    // height: 260px;
    overflow: hidden;
    img {
      width: 100%;
    }
  }
  .pet-guide {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    padding-top: 10px;
    .left {
      flex: 1;
      padding-right: 20px;
      box-sizing: border-box;
      .header {
        padding-bottom: 10px;
        border-bottom: 3px solid #9c6233;
        display: flex;
        align-items: center;
        img {
          height: 24px;
          width: 24px;
          padding-right: 10px;
        }
        h3 {
          font-size: 24px;
          color: #9c6233;
          flex: 1;
        }
        a{
          text-decoration: none;
          color: #333;
          font-size: 16px;
          color: #9c6233;
          // margin-top: 2px;
        }
      }
      .content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        .item {
          flex-basis: 290px;
          padding-top: 14px;
          // padding-bottom: 10px;
          .bgImg {
            width: 100%;
            height: 200px;
            display: block;
            background-size: cover !important;
            background-size: 100% !important;
            transition: all 0.6s;
            &:hover {
              background-size: 110% !important;
              opacity: 0.8;
            }
          }
        }
        .title {
          font-size: 18px;
          color: #333;
          padding: 10px 0;
          font-weight: bold;
          a {
            text-decoration: none;
            color: #333;
          }
        }
        .scription {
          font-size: 16px;
          line-height: 20px;
          color: #333;
          overflow: hidden;
          display: -webkit-box;
          -webkit-line-clamp: 3;
          -webkit-box-orient: vertical;
        }
        .author {
          display: flex;
          justify-content: space-between;
          padding-top: 10px;
          .icon {
            font-size: 14px;
            color: #999;
            line-height: 18px;
            i {
              cursor: pointer;
              padding-right: 4px;
              margin-left: 10px;
              span {
                padding: 0 3px;
                font-size: 14px;
              }
              &:first-child {
                margin-left: 0;
              }
            }
          }
          .time {
            font-size: 14px;
            color: #999;
            line-height: 18px;
          }
        }
      }
    }
    .right {
      flex-basis: 24%;
      .header {
        display: flex;
        justify-content: space-between;
        border-bottom: 3px solid #ececec;
        padding-bottom: 10px;
        margin-bottom: 13px;
        span {
          font-size: 24px;
          font-weight: bold;
          color: #9c6233;
        }
        i {
          font-size: 24px;
          color: #9c623381;
          cursor: pointer;
          // font-weight: bold;
        }
      }
      > .item {
        display: flex;
        height: 80px;
        // overflow: hidden;
        padding-bottom: 10px;
        a {
          // width: 100px;
          flex-basis: 80px;
          height: 80px;
          display: block;
          overflow: hidden;
          background-size: cover !important;
        }
        .cont {
          flex: 1;
          margin-left: 10px;
          .title {
            font-size: 16px;
            margin: 6px 0;
            color: #333;
            font-weight: bold;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
          }
          .scription {
            padding-top: 4px;
            font-size: 12px;
            line-height: 14px;
            color: #999;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
          }
        }
      }
      .question {
        // padding: 10px 0;
        .top {
          height: 80px;
          background-color: #9c6233;
          display: flex;
          align-items: center;
          padding: 10px;
          box-sizing: border-box;
          .logo {
            flex-basis: 60px;
            // width: 70px;
            height: 60px;
            background-color: #fff;
            margin-right: 10px;
            img {
              width: 50px;
              margin: 5px 0 0 5px;
            }
          }
          .scription {
            flex: 1;
            color: #fff;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            // padding: 0 20px;
            span {
              font-size: 14px;
              text-align: center;
              &:first-child {
                font-size: 16px;
                text-align: center;
                font-weight: bold;
              }
            }
          }
        }
        .item {
          margin-top: 20px;
          .title {
            color: #666;
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 8px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            i {
              font-weight: normal;
              padding-right: 10px;
              color: #9c6233;
              padding-left: 2px;
            }
            a {
              color: #333;
            }
          }
          .scription {
            font-size: 14px;
            line-height: 20px;
            color: #777;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            i {
              font-size: 20px;
              // text-align: -2px;
              vertical-align: -3px;
              color: #9c6233;
            }
          }
        }
      }
    }
  }
  .pet-exp {
    width: 1200px;
    margin: 0 auto;
    // background-color: #ccc;
    .header {
      padding-top: 20px;
      padding-bottom: 20px;
      display: flex;
      img {
        width: 24px;
        height: 24px;
        padding-right: 10px;
        padding-bottom: 10px;
        border-bottom: 3px solid #9c6233;
      }
      h3 {
        color: #9c6233;
        font-size: 24px;
        padding-bottom: 10px;
        border-bottom: 3px solid #9c6233;
        flex: 1;
      }
    }
    .container {
      display: flex;
      .left {
        flex-basis: 24%;
        > img {
          width: 100%;
        }
        .hot {
          margin-top: 20px;
          border: 1px solid #dbdbdb;
          padding: 20px;
          box-sizing: border-box;
          h3 {
            font-size: 20px;
            font-weight: normal;
            font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS",
              sans-serif;
            border-bottom: 2px solid #9c6233;
            display: inline-block;
            padding-top: 20px;
            padding-bottom: 14px;
            color: #666;
          }
          ul {
            border-top: 1px solid #ccc;
            li {
              cursor: pointer;
              display: flex;
              margin-top: 10px;

              .point {
                width: 10px;
                height: 10px;
                display: inline-block;
                background-color: #9c6233;
                border-radius: 50%;
                margin-right: 10px;
                margin-top: 9px;
              }
              .cont {
                flex: 1;
                span {
                  line-height: 28px;
                  display: flex;
                  flex-direction: column;
                  color: #333;
                  &.title {
                    overflow: hidden;
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 1;
                    text-overflow: ellipsis;
                  }
                  &.time {
                    color: #777;
                    font-size: 14px;
                    padding-bottom: 10px;
                    border-bottom: 1px solid #dbdbdb;
                  }
                }
              }
            }
          }
        }
      }
      .right {
        // flex-basis: 70%;
        flex: 1;
        margin-left: 20px;
        .item {
          display: flex;
          height: 260px;
          padding-bottom: 20px;
          .Img {
            flex-basis: 420px;
            width: 420px;
            height: 260px;
            overflow: hidden;
            background-size: cover !important;
            transition: all 0.4s;
            &:hover {
              opacity: 0.8;
            }
            img {
              width: 100%;
              opacity: 0;
            }
          }
          .content {
            height: 100%;
            flex: 1;
            margin-left: 30px;
            position: relative;
            a {
              font-size: 24px;
              color: #1a1a1a;
              font-weight: bold;
              text-decoration: none;
            }
            .author {
              padding: 10px 0;
              padding-top: 16px;
              color: #666;
              span {
                padding-left: 16px;
              }
              i {
                color: #333;
                // font-weight: bold;
                padding-right: 4px;
              }
            }
            .scription {
              font-size: 16px;
              line-height: 1.5em;
              // padding-top: 10px;
              // text-align: justify;
              overflow: hidden;
              display: -webkit-box;
              -webkit-line-clamp: 6;
              -webkit-box-orient: vertical;
            }
            .bottom {
              cursor: pointer;
              color: #fff;
              background-color: #9c6233;
              display: inline-block;
              padding: 10px 16px;
              position: absolute;
              bottom: 0;
              transition: all 0.5s;
              &:hover {
                background-color: #1a1a1a;
                opacity: 0.8;
              }
            }
          }
        }
        .pager {
          font-size: 12px;
          ul {
            display: flex;
            justify-content: center;
            li {
              color: #999;
              cursor: pointer;
              padding: 10px 14px;
              &.active {
                background-color: #f8ede6;
              }
              &:hover {
                background-color: #f8ede6;
              }
            }
          }
        }
      }
    }
  }
}
</style>